
TREE (tree_nbiot)

STATE (NBIOT_ROOT,				0,				nbiot_cs_root)
TRANS (ENTRY,					INTERNAL,		nbiot_entry_root)
TRANS (NBIOT_EVT_START,			NBIOT_POWERON,	fsm_no_action)
TRANS (NBIOT_EVT_POWERDOWN,		NBIOT_SHUTDOWN,	fsm_no_action)
TRANS (NBIOT_EVT_REBOOT,        NBIOT_POWERON,  nbiot_trans_reboot)
TRANS (START,					NBIOT_ROOT,		nbiot_start_action)
STATE_END

STATE (NBIOT_POWERON,			NBIOT_ROOT,		noiot_cs_poweron)
TRANS (ENTRY,					INTERNAL,		nbiot_entry_poweron)
TRANS (NBIOT_EVT_REDY, 			NBIOT_REDY,     fsm_no_action)
STATE_END

STATE (NBIOT_REDY,			    NBIOT_ROOT,		nbiot_cs_ready)
TRANS (ENTRY,					INTERNAL,		nbiot_entry_ready)
TRANS (NBIOT_EVT_RUN,  			NBIOT_RUNING,  	fsm_no_action)
STATE_END

STATE (NBIOT_RUNING,			NBIOT_ROOT,		nbiot_cs_runing)
TRANS (ENTRY,					INTERNAL,		nbiot_entry_run)
TRANS (NBIOT_EVT_SHUTDOWN,  	NBIOT_SHUTDOWN,	fsm_no_action)
STATE_END

STATE (NBIOT_SHUTDOWN,			NBIOT_ROOT,		nbiot_cs_shutdwon)
TRANS (ENTRY,					INTERNAL,		nbiot_entry_shutdown)
TRANS (NBIOT_EVT_POWEROFF, 		NBIOT_POWEROFF,	fsm_no_action)
STATE_END

STATE (NBIOT_POWEROFF,			NBIOT_ROOT,		nbiot_cs_poweroff)
TRANS (ENTRY,					INTERNAL,		nbiot_entry_poweroff)
STATE_END

TREE_END (tree_nbiot)
